package controller.menubar.commands;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.SwingUtilities;
import view.MainFrame;
import view.SerachFile;

public class SystemSerachListener implements ActionListener{	
	
	public SystemSerachListener(MainFrame frame) {		
		this.frame = frame;
	}	
	
	@Override
	public void actionPerformed(ActionEvent arg0) {		
		
		SwingUtilities.invokeLater(new Runnable()
        {   
            @Override
            public void run()
            {
                new SerachFile(frame).setVisible(true);
            }
        });
	}

	private MainFrame frame;
}
